

export const objectToUrl = (object:object) => {
    let result = '?'
    Object.keys(object).forEach((item:string) => {
        if (object[item] || object[item] === 0) {
            result += `${item}=${object[item]}&`
        }
    })
    return result.substr(0, result.length - 1)
}